#!/usr/bin/python
def perline(thisList, enum = None):
    "Print a list one item per line, optionally enumerated."
    if enum == None:
        for item in thisList:
            print str(item)
    else:
        n = int(enum)
        for item in thisList:
            print "%4s" % n, str(item)
            n += 1
